@extends('home.application.layouts')
@section('mainw12')
<section class="main w12">
    <div class="title"><a class="title1 db fl">申请成为作者</a></div>
    <div class="fr tit2"><span class="arr"></span></div>
    <div class="w12 step" style="background: url('{{asset('assets/application/images/2_03.jpg')}}') center 55% no-repeat;"></div>
    <div class="inputsec">
        <ul>
            <li>
                <label class="fl mr2">身份：</label>
                <input type="radio" name="author" value="2">文章发布者
                <input type="radio" name="author" value="3">图片分享者
                <input type="radio" name="author" value="5">以上两者
            </li>
            <li class="clr"><label class="db fl">&nbsp;</label><button class="db fl next yiyiu yiyius" style="border: none;" onclick="checkup()">下一步</button></li>
        </ul>
    </div>
</section>
@endsection
@section('javascript')
<script type="text/javascript">

    function checkup(){
        var author = $("input[type='radio']:checked").val();
        author=author==undefined?'000':author;
        $.post('{{url('application1')}}',{'_token':'{{csrf_token()}}','author':author},function(res){
            if(res.status){
                location.href='{{url('application2')}}';
            }else{
                layer.msg(res.msg)
            }
        });
    }
</script>
</body>
</html>
    @endsection